package ooday02;

public class Student {
    String name;
    int age;
    String address;
    char gender;

    public Student(String name, int age, String address, char gender) {
        this.name = name;
        this.age = age;
        this.address = address;
        this.gender = gender;
    }

    void study() {
        System.out.println(name + "在学习....");
    }
    void sayHi() {
        System.out.println("大家好，我叫: " + name + ",今年" + age + "了," + "家住" + address + ",性别" + gender);
    }
    void sayHello(String name) {
        System.out.println(name);
    }
}